import Vue from 'vue'
import App from './App.vue'


import router from './router'
import store from './store'
import './plugins/element.js'

Vue.config.productionTip = false

import request from "./network/request.js"
Vue.prototype.$http = request

Vue.mixin({
  computed: {
    authHeaderMixin(){
      return {Authorization:'Bearer '+localStorage.token}
    },
    UploadUrl(){
      return this.$http.defaults.baseURL+'/upload'
    },
  }
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
